<!-- 此tpl如使用script标签渲染，请遵循layui.laytpl语法，此页面，支持PHP语法-->


<script type="text/html" id="orderDemo">
    <div class="layui-btn-container">
        {foreach name="right_buttons" key="key" item="vo"}

            {if $vo.title == '发货'}
                {{#  if(d.statusRaw > 1){ }}
                    {{#  if(d.statusRaw == 2){ }}
                    <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">发货</a>
                    {{#  } else { }}
                    <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">发货详情</a>
                    {{#  } }}
                {{#  } }}
            {elseif $vo.title == '删除'}
                {{#  if(d.statusRaw  == 1){ }}
                <a class="layui-btn layui-btn-sm right_button layui-btn-danger" lay-event="{$vo.json}">删除</a>
                {{#  } }}
            {elseif $vo.title == '修改地址'}
                {{#  if(d.statusRaw  == 1){ }}
                <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">修改地址</a>
                {{#  } }}
            {elseif $vo.title == '修改运费'}
                {{#  if(d.statusRaw  == 1){ }}
                <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">修改运费</a>
                {{#  } }}
            {elseif $vo.title == '修改实付金额'}
                {{#  if(d.statusRaw  == 1){ }}
                <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">修改实付金额</a>
                {{#  } }}
            {else}
                <a class="{$vo.class} right_button" lay-event="{$vo.json}">{$vo.title}</a>
            {/if}

        {/foreach}
    </div>
</script>
<script id="shoptypeTpl" type="text/html">
    {{#  if(d.shoptype =='shop'){ }}
    普通订单
    {{#  }else if(d.shoptype =='seckill'){ }}
    秒杀订单
    {{#  }else{ }}
    积分订单
    {{#  } }}
</script>
<script id="addressTpl" type="text/html">
    <p class="left-tpl">收货人:{{d.receiver}}</p>
    <p class="left-tpl">收货电话:{{d.receiver_tel}}</p>
    <p class="left-tpl">收货地址：{{d.p.title}}{{d.c.title}}{{d.d.title}}{{d.address_details}}</p>
</script>

<script id="_commissionTpl" type="text/html">
    {{#  if(d.commission_uid1  != 0){ }}<p class="left-tpl">一级：{{d.commission1.nickname}}</p>{{#  } }}
    {{#  if(d.commission_uid2  != 0){ }}<p class="left-tpl">二级：{{d.commission2.nickname}}</p>{{#  } }}
</script>

<script id="_makeTpl" type="text/html">
    {{#  if(d.make_type  > 0){ }}
    <p class="left-tpl">发票类型：{{d.make_type == 1?'增值税普通发票':'增值税专用发票'}}</p>
    <p class="left-tpl">开票信息：{{d.make}}</p>
    {{#  }else{ }}
    <p> - </p>
    {{#  } }}
</script>